<%= content_for :pane2 do %>
    <%= render :partial=>'users/user_index' %>
<% end %>

<%= render 'edit_form' %>
<script type="text/javascript">
    window.location = '#pane3'
</script>